package cn.technology.forum.service;

import cn.technology.forum.dto.*;
import cn.technology.forum.enums.LikeTypeEnum;
import cn.technology.forum.mapper.TalkExtMapper;
import cn.technology.forum.mapper.TalkMapper;
import cn.technology.forum.model.Talk;
import cn.technology.forum.model.TalkExample;
import cn.technology.forum.util.TimeUtils;
import cn.technology.forum.vo.TalkVO;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wadao
 * @version 1.0
 * @date 2020/9/23 18:54
 * @site technology.cn
 */

@Service
public interface TalkService {


    int insert(TalkDTO talkDTO);

    int deleteByPrimaryKey(Long id);

    Talk updateExt(Talk talk,TalkDTO talkDTO);

    Talk update(Talk talk,TalkDTO talkDTO);


    PaginationDTO list(TalkQueryDTO talkQueryDTO,UserDTO view_user);


    TalkVO convert(TalkVO talkVO, UserDTO view_user);


}
